package com.bookbuf.biz.app.dagger2.module;

import com.bookbuf.biz.app.ExamDetailActivity;
import com.bookbuf.biz.app.vm.ExamViewModel;
import com.bookbuf.library.dagger2.ActivityScope;

import dagger.Module;
import dagger.Provides;

/**
 * author: robert.
 * date :  2016/12/28.
 */
@Module
public class ExamDetailActivityModule {
    private ExamDetailActivity activity;

    public ExamDetailActivityModule(ExamDetailActivity activity) {
        this.activity = activity;
    }

    @Provides
    @ActivityScope
    ExamDetailActivity provideExamDetailActivity() {
        return this.activity;
    }

    @Provides
    @ActivityScope
    ExamViewModel provideExamViewModel() {
        return new ExamViewModel();
    }

}
